var liebiao = document.querySelector(".icon-liebiao1");
var web2 = document.querySelector(".web2");
var isBlock = false;
var tc = document.querySelector(".web2 .icon-cuo");
var liji = document.querySelector(".login_interface .in");
var login = document.querySelector(".login");
var denglu = document.querySelector(".login .landing");
var logined = document.querySelector(".logined");
var quit = document.querySelector(".logined .quit");
var user_login = document.querySelector(".login_interface");
var fangdajing = document.querySelector(".icon-fangdajing");
var web1 = document.querySelector(".web1");
var tuichu = document.querySelector(".web1 .icon-cuo");
var sousuo = document.querySelector(".web1 .icon-fangdajing");
var searched = document.querySelector(".searched");
var search = document.querySelector(".search");
var web3 = document.querySelector(".web3");
var ct_box = document.querySelector("#box");
var next = document.querySelector(".web3 .coldfusion .next");
liebiao.addEventListener("touchend", function() {
	//	3.控制样式
	web2.style.transform = "translateX(0)"

})
//定义点击icon-cuo关闭用户登录页
tc.addEventListener("touchend", function() {
	web2.style.transform = "translateX(-100%)"
})
//定义点击立即登录进入一登录页面

liji.addEventListener("touchend", function() {
	login.style.transform = "translateX(0)"
})
//点击登录打开已登录用户

denglu.addEventListener("touchend", function() {
	logined.style.transform = "translateX(0)"
})
//点击退出退出

quit.addEventListener("touchend", function() {
	logined.style.transform = "translateX(-100%)"
	login.style.transform = "translateX(-200%)"
})
//定义点击放大镜打开搜索页

fangdajing.addEventListener("touchend", function() {
	web1.style.transform = "translateY(0)"
	search.style.transform = "translateY(0)"
})
// 定义icon-cuo的收回

tuichu.addEventListener("touchend", function() {
	web1.style.transform = "translateY(-200%)"
})

//点击搜索出现结果
sousuo.addEventListener("touchend",function(){
	searched.style.transform = "translateY(0)"
})

//点击显示页面
ct_box.addEventListener("touchend",function(){
	web3.style.transform = "translateX(0)"
})


//退出显示页
next.addEventListener("touchend",function(){
	web3.style.transform = "translateX(100%)"
})

//打开message
function listDisplay(){
			$('.message_b .message_all').on("touchend",function(){
				show = $(this).siblings('ul').css('display');
				console.log(show);
				if(show=='none'){
					$(this).siblings('ul').slideDown();
					$(this).find('i').addClass('rotate')
					$(this).parent().siblings().find('ul').slideUp();
					$(this).parent().siblings().find('i').removeClass('rotate');
				}else{
					$(this).siblings('ul').slideUp();
					$(this).find('i').removeClass('rotate');
				}
			})
		}
	listDisplay();

function listdisplay(){
			$('.user_reply .reply_title').on("touchend",function(){
				show = $(this).siblings('ul').css('display');
				console.log(show);
				if(show=='none'){
					$(this).siblings('ul').slideDown();
					$(this).find('i').addClass('rotate')
					$(this).parent().siblings().find('ul').slideUp();
					$(this).parent().siblings().find('i').removeClass('rotate');
				}else{
					$(this).siblings('ul').slideUp();
					$(this).find('i').removeClass('rotate');
				}
			})
		}
	listdisplay();